﻿@{
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}
@section Head {
    @RenderSection("Head", required: false)
}
@section Scripts {
    @RenderSection("Scripts", required: false)
}
<div id="topmenu">
    <div id="topmenuleft">
    </div>
    <div id="topmenuright">
    </div>
    @ShowTopNodes(ViewBag.Layout.TopHomeNode, true)
    @helper ShowTopNodes(Adams.Shared.Entities.Sitemap.WebTopNode node, bool isHome)
        {   
        <ul>
            @foreach (var n in node.ChildNodes)
            {
                <li><a href="@n.Url">@n.Title</a>
                    @ShowTopNodes(n, false)
                </li>
            }
        </ul>
    }
</div>
<div class="clear">
</div>
<div id="homebanner">
    <ul>
        <li><a href="#">
            <img src="/Content/49847465.jpg" style="width: 960px; height: 200px;" /></a></li>
        <li><a href="#">
            <img src="/Content/42-27088510.jpg" style="width: 960px; height: 200px;" /></a></li>
        <li><a href="#">
            <img src="/Content/mosque-prayer.jpg" style="width: 960px; height: 200px;" /></a></li>
        <li>some random content can go here!
            <br />
            <input type="text" />
            enter donation amount. </li>
    </ul>
</div>
<div class="clear">
</div>
<div id="main">
    <div id="leftmenu">
        @ShowLeftNodes(ViewBag.Layout.LeftHomeNode, true)
        @helper ShowLeftNodes(Adams.Shared.Entities.Sitemap.WebLeftNode node, bool isHome)
            {   
            <ul>
                @foreach (var n in node.ChildNodes)
                {
                    <li><a href="@n.Url">@n.Title</a>
                        @ShowLeftNodes(n, false)
                    </li>
                }
            </ul>
        }
    </div>
    <div id="maincontent">
        @if (ViewBag.Layout.BreadCrumb.Count > 1)
        {
            <div id="breadcrumb">
                <ul>
                    @foreach (var n in ViewBag.Layout.BreadCrumb)
                    {
                        <li><a href="@n.Url">@n.Title</a></li>
                    }
                </ul>
            </div>
        }
        @RenderBody()
    </div>
    <div class="clear">
    </div>
</div>
